<?php

class Install_Form_Setup_Siteinfo extends Nuo_Form
{
	public function init()
	{
		// init site maintenance mode
		$this -> addElement('Radio', 'maintenance_mode', array(
				'label' => 'Maintainance',
				'required' => true,
				'multiOptions' => array(
						'online' => 'online, anyonce can access this site.',
						'offline' => 'offline, user must enter maintainance code to access this site.',
				),
				'value'=>'online',
		));

		// init site maintenance code
		$this -> addElement('Text', 'maintenance_code', array(
				'label' => 'maintenance code',
				'class'=>'text long-text',
				'description' => 'If empty, a password will be randomly generated.',
				'filters' => array('StringTrim', ),
		));
		
		// init profile
		$this -> addElement('Radio', 'site_mode', array(
				'label' => 'Site mode',
				'multiOptions' => array(
						'publish' => 'publish, everyone can view content.',
						'private' => 'private, members can view content only.'
				),
				'value'=>'publish'
		));

		// init site title
		$this -> addElement('Text', 'site_meta_title', array(
				'label' => 'site title',
				'class'=>'text long-text',
				'description' => 'title of this site.',
				'value'=>'Nuophp site',
		));

		// init site description
		$this -> addElement('textarea', 'site_meta_description', array(
				'label' => 'site meta description',
				'class' => 'basic',
				'description' => 'description of this site, multi words must be separated by comma ",".',
				'value'=>'Nuo php is best open source platform for multiple approach'
		));

		// init site keywords
		$this -> addElement('textarea', 'site_meta_keywords', array(
				'label' => 'site meta keywords',
				'class' => 'basic',
				'description' => 'keywords of this site, multi words must be separated by comma ",".',
				'value'=>'Nuo php, Nuo platform, php best opensource script, php cms'
		));

		// init submit
		$this -> addElement('button', '_submit', array(
				'label' => 'save change',
				'type' => 'submit',
				'class' => 'submit',
				'decorators'=>array('ViewHelper')
		));
        
        // init submit
        $this -> addElement('button', '_cancel', array(
                'label' => 'cancel',
                'type' => 'submit',
                'class' => 'cancel',
                'decorators'=>array('ViewHelper')
        ));
        
        $this->addDisplayGroup(array('_submit','_cancel'), '_buttons');
	}

}
